package cn.wk.pay.domain;

import cn.wk.basic.domain.BaseDomain;
import cn.wk.org.domain.Shop;
import cn.wk.user.domain.User;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class PayBill extends BaseDomain {
    //摘要
    private String digest;
    //交易金额
    private BigDecimal money;
    //支付宝统一的支付编号
    private String unionPaySn;
    //状态   1 待支付  2已支付  -1 取消
    private Integer state = 1;
    //最后支付时间
    private Date lastPayTime;
    private Integer payChannel; //1银联   2 微信  3支付宝
    //业务类型
    private String businessType;
    //业务键
    private Long businessKey;
    //支付完成时间或者订单取消时间
    private Date updateTime;
    //创建时间
    private Date createTime = new Date();
    //用户
    private User user;
    //店铺
    private Shop shop;
    //昵称
    private String nickName;
    //订单编号
    private String orderSn;

}
